home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 036a / pmfinder.zip / PMFINDER.H < prev    next >
Text File  |  1991-12-05  |  2KB  |  67 lines

  1. /*
  2.  * OS/2 PM File Finder Utility - HEADER FILE
  3.  *
  4.  * LANGUAGE      : Microsoft C5.1
  5.  * MODEL         : large - MT
  6.  * ENVIRONMENT   : Microsoft OS/2 PM SDK
  7.  * STATUS        : operational
  8.  *
  9.  * 11/01/88 1.00 - Jerry Weldon - initial creation.
  10.  * 03/22/91 1.10 - Robert Mahoney - added multi-threading.
  11.  * 11/25/91 1.20 - Robert Mahoney - added zip file search.
  12.  *
  13.  */
  14.  
  15. /* resource ids */
  16. #define ID_FINDER         1
  17.  
  18. /* dialog ids */
  19. #define IDD_PATTERN       100
  20. #define IDD_DRIVES        101
  21. #define IDD_FILES         102
  22. #define IDD_SEARCH        103
  23. #define IDD_QUIT          105
  24. #define IDD_CANCEL        106
  25. #define IDCB_ARCHIVE      107
  26. #define IDRB_ONLY         108
  27. #define IDRB_ALSO         109
  28. #define IDLB_ARCHIVE      110
  29. #define IDT_STATUS        111
  30. #define IDD_ABOUTDLG      200
  31.  
  32. /* menu ids */
  33. #define IDM_ABOUT         101
  34.  
  35. #define STACKSIZE         8192
  36. #define WM_THREAD_DONE (WM_USER + 0)
  37.  
  38. #define HWNDOWNER(h)      WinQueryWindow( h, QW_OWNER, FALSE )
  39.  
  40. typedef struct
  41.    {
  42.     char     drive_spec[26];
  43.     char     szPattern[12];
  44.     HWND     hwndListBox;
  45.     HWND     hwndDlg;
  46.     char     szArchive[4];
  47.    }
  48.     SCANTHREADPARM;
  49.  
  50. typedef SCANTHREADPARM FAR *PSCANTHREADPARM;
  51.  
  52. /* macro definitions */
  53. #define ABS(x)            ((x)<0?(-(x)):(x))
  54. #define HWNDOWNER(h)      WinQueryWindow( h, QW_OWNER, FALSE )
  55. #define HWNDPARENT(h)     WinQueryWindow( h, QW_PARENT, FALSE )
  56. #define MAPWINDOWRECTS(hwndFrom,hwndTo,prcl,crcl) \
  57.           WinMapWindowPoints( hwndFrom, hwndTo, (PPOINTL)prcl, 2*crcl )
  58.  
  59.  
  60. /* function prototypes */
  61. MRESULT EXPENTRY FinderDlgProc( HWND, USHORT, MPARAM, MPARAM );
  62. MRESULT EXPENTRY AboutDlgProc( HWND, USHORT, MPARAM, MPARAM );
  63. static VOID CenterPopup( HWND, HWND );
  64. VOID  cdecl FAR ScanThread( PSCANTHREADPARM);
  65. void StartSearch(HWND hwnd);
  66. void InitDlgBox(HWND hwnd);
  67.